import request from '@/utils/request.js'
// 所有权限点
export function sysPermission () {
  return request({
    url: '/sys/permission'
  })
}
// 删除
export function sysPermissionDel (id) {
  return request({
    url: '/sys/permission/' + id,
    method: 'delete'
  })
}
// 添加权限点
export function sysPermissionPost (data) {
  return request({
    url: '/sys/permission',
    method: 'post',
    data
  })
}
// 修改权限点
export function sysPermissionPut (data) {
  return request({
    url: '/sys/permission/' + data.id,
    method: 'put',
    data
  })
}
